<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, user-scalable=no">
  <meta name="description" content="API docs for the dropDownItem method from the SettingsScreenState class, for the Dart programming language.">
  <title>dropDownItem method - SettingsScreenState class - settings library - Dart API</title>

  
  <link rel="preconnect" href="https://fonts.gstatic.com">
  <link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap" rel="stylesheet">
  <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
  <link rel="stylesheet" href="../../static-assets/github.css">
  <link rel="stylesheet" href="../../static-assets/styles.css">
  <link rel="icon" href="../../static-assets/favicon.png">

</head>

<body data-base-href="../../"
      data-using-base-href="false">

<div id="overlay-under-drawer"></div>

<header id="title">
  <button id="sidenav-left-toggle" type="button">&nbsp;</button>
  <ol class="breadcrumbs gt-separated dark hidden-xs">
    <li><a href="../../index.html">trpp</a></li>
    <li><a href="../../screens_settings/screens_settings-library.html">settings</a></li>
    <li><a href="../../screens_settings/SettingsScreenState-class.html">SettingsScreenState</a></li>
    <li class="self-crumb">dropDownItem method</li>
  </ol>
  <div class="self-name">dropDownItem</div>
  <form class="search navbar-right" role="search">
    <input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
  </form>
</header>

<main>

  <div id="dartdoc-sidebar-left" class="sidebar sidebar-offcanvas-left">
    <header id="header-search-sidebar" class="hidden-l">
      <form class="search-sidebar" role="search">
        <input type="text" id="search-sidebar" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
      </form>
    </header>
    
    <ol class="breadcrumbs gt-separated dark hidden-l" id="sidebar-nav">
      <li><a href="../../index.html">trpp</a></li>
      <li><a href="../../screens_settings/screens_settings-library.html">settings</a></li>
      <li><a href="../../screens_settings/SettingsScreenState-class.html">SettingsScreenState</a></li>
      <li class="self-crumb">dropDownItem method</li>
    </ol>
    
    <h5>SettingsScreenState class</h5>
    <ol>

    <li class="section-title"><a href="../../screens_settings/SettingsScreenState-class.html#constructors">Constructors</a></li>
    <li><a href="../../screens_settings/SettingsScreenState/SettingsScreenState.html">SettingsScreenState</a></li>


    <li class="section-title">
      <a href="../../screens_settings/SettingsScreenState-class.html#instance-properties">Properties</a>
    </li>
    <li class="inherited"><a href="https://api.flutter.dev/flutter/widgets/State/context.html">context</a></li>
    <li><a href="../../screens_settings/SettingsScreenState/dropdownValue.html">dropdownValue</a></li>
    <li class="inherited"><a href="https://api.flutter.dev/flutter/dart-core/Object/hashCode.html">hashCode</a></li>
    <li class="inherited"><a href="https://api.flutter.dev/flutter/widgets/State/mounted.html">mounted</a></li>
    <li class="inherited"><a href="https://api.flutter.dev/flutter/dart-core/Object/runtimeType.html">runtimeType</a></li>
    <li class="inherited"><a href="https://api.flutter.dev/flutter/widgets/State/widget.html">widget</a></li>

    <li class="section-title"><a href="../../screens_settings/SettingsScreenState-class.html#instance-methods">Methods</a></li>
    <li><a href="../../screens_settings/SettingsScreenState/build.html">build</a></li>
    <li><a href="../../screens_settings/SettingsScreenState/buildCardWidget.html">buildCardWidget</a></li>
    <li class="inherited"><a href="https://api.flutter.dev/flutter/widgets/State/deactivate.html">deactivate</a></li>
    <li class="inherited"><a href="https://api.flutter.dev/flutter/widgets/State/debugFillProperties.html">debugFillProperties</a></li>
    <li class="inherited"><a href="https://api.flutter.dev/flutter/widgets/State/didChangeDependencies.html">didChangeDependencies</a></li>
    <li class="inherited"><a href="https://api.flutter.dev/flutter/widgets/State/didUpdateWidget.html">didUpdateWidget</a></li>
    <li class="inherited"><a href="https://api.flutter.dev/flutter/widgets/State/dispose.html">dispose</a></li>
    <li><a href="../../screens_settings/SettingsScreenState/dropDownItem.html">dropDownItem</a></li>
    <li><a href="../../screens_settings/SettingsScreenState/flutterLogo.html">flutterLogo</a></li>
    <li><a href="../../screens_settings/SettingsScreenState/gitButton.html">gitButton</a></li>
    <li><a href="../../screens_settings/SettingsScreenState/initState.html">initState</a></li>
    <li class="inherited"><a href="https://api.flutter.dev/flutter/dart-core/Object/noSuchMethod.html">noSuchMethod</a></li>
    <li><a href="../../screens_settings/SettingsScreenState/openGitHub.html">openGitHub</a></li>
    <li class="inherited"><a href="https://api.flutter.dev/flutter/widgets/State/reassemble.html">reassemble</a></li>
    <li><a href="../../screens_settings/SettingsScreenState/saveTheme.html">saveTheme</a></li>
    <li class="inherited"><a href="https://api.flutter.dev/flutter/widgets/State/setState.html">setState</a></li>
    <li class="inherited"><a href="https://api.flutter.dev/flutter/foundation/Diagnosticable/toDiagnosticsNode.html">toDiagnosticsNode</a></li>
    <li><a href="../../screens_settings/SettingsScreenState/topCard.html">topCard</a></li>
    <li class="inherited"><a href="https://api.flutter.dev/flutter/foundation/Diagnosticable/toString.html">toString</a></li>
    <li class="inherited"><a href="https://api.flutter.dev/flutter/foundation/Diagnosticable/toStringShort.html">toStringShort</a></li>

    <li class="section-title inherited"><a href="../../screens_settings/SettingsScreenState-class.html#operators">Operators</a></li>
    <li class="inherited"><a href="https://api.flutter.dev/flutter/dart-core/Object/operator_equals.html">operator ==</a></li>




</ol>

  </div><!--/.sidebar-offcanvas-->

  <div id="dartdoc-main-content" class="main-content">
      <div><h1><span class="kind-method">dropDownItem</span> method </h1></div>

    <section class="multi-line-signature">
      <span class="returntype"><a href="https://api.flutter.dev/flutter/widgets/Widget-class.html">Widget</a></span>
            <span class="name ">dropDownItem</span>
(<wbr>)
      
    </section>
    
    <section class="summary source-code" id="source">
      <h2><span>Implementation</span></h2>
      <pre class="language-dart"><code class="language-dart">Widget dropDownItem() {
  return DropdownButton&lt;TupleTheme&gt;(
    value: dropdownValue,
    icon: Icon(
      FontAwesomeIcons.caretDown,
      color: Theme.of(context).accentColor,
    ),
    iconSize: 16,
    elevation: 16,
    style: TextStyle(color: Theme.of(context).primaryColor),
    underline: Container(
      height: 2,
      color: Theme.of(context).accentColor,
    ),
    onChanged: (TupleTheme newValue) {
      setState(() {
        dropdownValue = newValue;
        DynamicTheme.of(context).setThemeData(newValue.theme);
      });
      saveTheme(newValue.name);
    },
    items: ThemeNames.map&lt;DropdownMenuItem&lt;TupleTheme&gt;&gt;((TupleTheme value) {
      return DropdownMenuItem&lt;TupleTheme&gt;(
        value: value,
        child: Text(value.name,
            style: TextStyle(
                fontSize: 16, color: Theme.of(context).primaryColor)),
      );
    }).toList(),
  );
}</code></pre>
    </section>

  </div> <!-- /.main-content -->

  <div id="dartdoc-sidebar-right" class="sidebar sidebar-offcanvas-right">
  </div><!--/.sidebar-offcanvas-->

</main>

<footer>
  <span class="no-break">
    trpp
      2.0.0+2
  </span>

</footer>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="../../static-assets/typeahead.bundle.min.js"></script>
<script src="../../static-assets/highlight.pack.js"></script>
<script src="../../static-assets/script.js"></script>


</body>

</html>
